import Vue from 'vue'
import Router from 'vue-router'
import TaskManger from '@/components/TaskManger'
import Login from '@/components/Login'
import Navigate from '@/components/Navigate'
import Stack from '@/components/Stack'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: "/",
      redirect:"/login"
    },
    {
      path: "/login",
      name:'Login',
      component:Login
    },
    {
      path: "/navigate",
      component: Navigate,
      children:[
        {
          path: '/task',
          name: 'TaskManger',
          component: TaskManger
        },
        {
          path:'/stack',
          name: 'Stack',
          component: Stack
        }
      ]
    },
  ]
})
